import request from '@/utils/request'

// 查询素材库详情列表
export function listALL(query) {
  return request({
    url: '/system/aDataInfo/listAll',
    method: 'get',
    params: query
  })
}

// 查询素材库详情列表
export function listADataInfo(query) {
  return request({
    url: '/system/aDataInfo/list',
    method: 'get',
    params: query
  })
}

// 查询素材库详情详细
export function getADataInfo(id) {
  return request({
    url: '/system/aDataInfo/' + id,
    method: 'get'
  })
}

// 新增素材库详情
export function addADataInfo(data) {
  return request({
    url: '/system/aDataInfo',
    method: 'post',
    data: data
  })
}

// 修改素材库详情
export function updateADataInfo(data) {
  return request({
    url: '/system/aDataInfo',
    method: 'put',
    data: data
  })
}

// 删除素材库详情
export function delADataInfo(id) {
  return request({
    url: '/system/aDataInfo/' + id,
    method: 'delete'
  })
}
